//
//  AOStatusModel.swift
//  weibo_zha
//
//  Created by _zha on 16/10/27.
//  Copyright © 2016年 渣. All rights reserved.
//

import UIKit

class AOStatusModel: NSObject {
    //创建时间
    var created_at: Date?
    //微博ID
    var id: Int64 = 0
    //微博内容
    var text: String?
    //微博来源
    var source: String?
    //用户信息
    var user: AOUserModel?
    /// 转发微博模型
    var retweeted_status:AOStatusModel?
    ///int	转发数
    var reposts_count: Int = 0
    /// 评论
    var comments_count: Int = 0
    /// int	表态数
    var attitudes_count: Int = 0
    /// 配图数组
    var pic_urls: [AOPictureInfoModel]?
    
    // 返回容器类中的所需要存放的数据类型
    class func modelContainerPropertyGenericClass() -> [String: Any] {
        return ["pic_urls": AOPictureInfoModel.self]
    }
    
    override var description: String {
        let keys = ["created_at", "id", "text", "source"]
        return dictionaryWithValues(forKeys: keys).description
    }
    
}
